//
//  LNMainModule.m
//  LNBeeHive
//
//  Created by wwww on 2019/9/27.
//  Copyright © 2019 淘发现1iOS. All rights reserved.
//

#import "LNMainModule.h"
#import "LNService.h"
#import "LNMainModuleService.h"
@interface LNMainModule()<BHModuleProtocol>

@end
@implementation LNMainModule

+ (void)load
{
    [BeeHive registerDynamicModule:[self class]];
}

- (id)init{
    if (self = [super init])
    {
        NSLog(@"ShopModule init");
    }
    
    return self;
}

-(void)modInit:(BHContext *)context
{
    NSLog(@"模块初始化中");
    
    // 配置导航栏属性
    [GKConfigure setupCustomConfigure:^(GKNavigationBarConfigure * _Nonnull configure) {
        configure.gk_translationX = 15;
        configure.gk_translationY = 20;
        configure.gk_scaleX = 0.90;
        configure.gk_scaleY = 0.92;
        configure.gk_navItemLeftSpace = 12.0f;
        configure.gk_navItemRightSpace = 12.0f;
    }];
    
    
}

- (void)modSetUp:(BHContext *)context
{
    [[BeeHive shareInstance]  registerService:@protocol(LNMainServiceProtocol) service:[LNMainModuleService class]];
}


@end
